<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<br />
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#cccccc">
<tr>
	<td>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    	<td class="blueBold12">&nbsp;&nbsp;&nbsp;导航</td>
    </tr>
    <tr>
    	<td colspan="2">
        <div id="navDiv" style="width:100%;">
        	<div class="titleDiv" style="cursor:hand;"><img src="<%=path%>/include/styleBase/images/left/group.png" align="absmiddle" border="0">&nbsp;<a href="#2011" onclick="_showfriend()">自己人&nbsp;(<sap:FriendCount personuuid="<%=personuuid%>"><sap:write property="FRIENDCOUNT" /></sap:FriendCount>)</a></div>
        </div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="display:none" id="myfriend">
			<sap:FriendList personuuid="<%=personuuid%>">
            	<sap:Friend personuuid="<%=personuuid%>">
                	<tr>
                    	<td width="20">&nbsp;</td>
                    	<td height="35" width="35" align="center">
                        <a href="<%=path%>/person/personarea?personuuid=<sap:write property='PI_UUID' />">
                        <img width="30" height="30" border="0" src="<%=path%>/servlet/FileUploadManagerServlet?method=showImage&imgPath=<sap:write property='PI_ZHAOPIAN' />&defPath=nobody.gif" />
                        </a>
                        </td>
                        <td class="lightBlueNormal12"><a href="<%=path%>/person/personarea?personuuid=<sap:write property='PI_UUID' />"><sap:write property="PI_FIRSTNAME" /><sap:write property="PI_LASTNAME" /></a></td>
                    </tr>
                </sap:Friend>
            </sap:FriendList>
        </table>        
        
        <div id="navDiv" style="width:100%;">
        	<div class="titleDiv" style="cursor:hand;"><img src="<%=path%>/include/styleBase/images/left/group.png" align="absmiddle" border="0">&nbsp;<a href="#2011" onclick="_showmyqun()">我的群&nbsp;(<sap:QuanCount personuuid="<%=personuuid%>"><sap:write property="QUANCOUNT" /></sap:QuanCount>)</a></div>
        </div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0" style="display:none" id="myqun">
        	
				<%
                int quancount = 0;
                %>
                <sap:MyQuanList personuuid="<%=personuuid%>">
                    <%quancount++;%>
                    <sap:MyQuan>
                    <tr>
                    	<td width="20">&nbsp;</td>
                        <td height="35" width="35" align="center">
                        <a href="<%=path%>/quan/quanIndex.jsp?quanId=<sap:write property='QUAN_UUID' />">
                        <img width="30" height="30" border="0" src="<%=path%>/servlet/FileUploadManagerServlet?method=showImage&imgPath=<sap:write property='QUAN_ZHAOPIAN' />&defPath=nobody.gif" />
                        </a></td>
                        <td class="lightBlueNormal12"><a href="<%=path%>/quan/quanIndex.jsp?quanId=<sap:write property='QUAN_UUID' />"><sap:write property="QUAN_NAME" /></a></td>
                    </tr>
                    </sap:MyQuan>
                </sap:MyQuanList>
                
                <sap:JoinedQuanList personuuid="<%=personuuid%>">
                    <%
                    //只显示5个圈子，如果自己创建的圈子已超过5个，则不显示加入的圈子。不足时取加入的圈子补齐
                    if(quancount<5){
                    //System.out.println("quancount "+quancount);
                    %>
                    <sap:JoinedQuan>
                    <tr>
                    	<td width="20">&nbsp;</td>
                        <td height="35" width="35" align="center">
                        <a href="<%=path%>/quan/quanIndex.jsp?quanId=<sap:write property='QUAN_UUID' />">
                        <img width="30" height="30" border="0" src="<%=path%>/servlet/FileUploadManagerServlet?method=showImage&imgPath=<sap:write property='QUAN_ZHAOPIAN' />&defPath=nobody.gif" />
                        </a>
                        </td>
                        <td class="lightBlueNormal12"><a href="<%=path%>/quan/quanIndex.jsp?quanId=<sap:write property='QUAN_UUID' />"><sap:write property="QUAN_NAME" /></a></td>
                    </tr>
            		</sap:JoinedQuan>
                    <%
                        quancount++;
                    }else{
                        //超过5个，停止循环展示
                        break;
                    }
                    %>
                </sap:JoinedQuanList>
                </td>
            </tr>
       </table>

        
        <div id="navDiv" style="width:100%;">
        <div class="titleDiv"><img src="<%=request.getContextPath()%>/include/styleBase/images/left/comments.png" align="absmiddle">&nbsp;&nbsp;
        我的商店</DIV>
        <div class="titleDiv" style="cursor:hand;"><img src="<%=path%>/include/styleBase/images/left/page_copy.png" align="absmiddle">&nbsp;<a href="<%=request.getContextPath()%>/article/articlelist" style="text-decoration:none">我的博客</a></DIV>
        <div class="titleDiv"><img src="<%=path%>/images/lightbulb.png" align="absmiddle">&nbsp;&nbsp;问答（99）</DIV>
        <div class="titleDiv"><img src="<%=request.getContextPath()%>/include/styleBase/images/left/package.png" align="absmiddle">&nbsp;&nbsp;交换</DIV>
        <div class="titleDiv"><img src="<%=request.getContextPath()%>/include/styleBase/images/left/package.png" align="absmiddle">&nbsp;&nbsp;文库</DIV>
        <div class="titleDiv"><img src="<%=request.getContextPath()%>/include/styleBase/images/left/package.png" align="absmiddle">&nbsp;&nbsp;我要爆料</DIV>
       
        </div>
        </td>
    </tr>
    </table>
    </td>
</tr>
</table>
<br />
<table width="100%" cellpadding="0" cellspacing="1" border="0" bgcolor="#cccccc">
<tr>
	<td>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
    	<td class="blueBold12" colspan="2">&nbsp;&nbsp;&nbsp;工具</td>
    </tr>
    <tr>
       	<td width="20" height="25"></td>
        <td class="blackNormal12">SAP搜索引擎</td>
    </tr>
    <tr>
       	<td width="20" height="25"></td>
        <td class="blackNormal12">T-Code Table检索</td>
    </tr>
    <tr>
       	<td width="20" height="25"></td>
        <td class="blackNormal12">代码下载工具</td>
    </tr>
    </table>
    </td>
</tr>
</table>
<br /><br />
        <!--
        <div class="titleDiv" onClick="_gotoPage('#')" style="cursor:hand;"><img src="<%=path%>/images/chart_bar_edit.png" align="absmiddle">&nbsp;&nbsp;投票</DIV>
        <div class="titleDiv"><img src="<%=path%>/images/calendar_edit.png" align="absmiddle">&nbsp;&nbsp;大事记</DIV>
        -->
        <script language="javascript">
		<!--
		function _showmyqun(){
			var obj = document.getElementById("myqun");
			if(obj.style.display=="none"){
				obj.style.display = "block";
			}else{
				obj.style.display = "none";
			}
		}
		function _showfriend(){
			var obj = document.getElementById("myfriend");
			if(obj.style.display=="none"){
				obj.style.display = "block";
			}else{
				obj.style.display = "none";
			}
		}
		-->
		</script>